<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>今日新闻 - 实时资讯平台</title>
    <link rel="stylesheet" href="css/style.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <!-- 顶部导航 -->
    <header class="header">
        <div class="container">
            <div class="logo">
                <h1>今日新闻</h1>
            </div>
            <nav class="nav">
                <ul class="nav-list">
                    <li><a href="#home" class="nav-link active" data-category="home">首页</a></li>
                    <li><a href="#domestic" class="nav-link" data-category="domestic">国内</a></li>
                    <li><a href="#international" class="nav-link" data-category="international">国际</a></li>
                    <li><a href="#tech" class="nav-link" data-category="tech">科技</a></li>
                    <li><a href="#sports" class="nav-link" data-category="sports">体育</a></li>
                </ul>
                <div class="mobile-menu-toggle">
                    <i class="fas fa-bars"></i>
                </div>
            </nav>
        </div>
    </header>

    <!-- 主要内容区域 -->
    <main class="main">
        <div class="container">
            <!-- 轮播图 -->
            <section class="carousel-section">
                <div class="carousel" id="carousel">
                    <div class="carousel-inner">
                        <!-- 轮播图内容将通过JavaScript动态加载 -->
                    </div>
                    <button class="carousel-btn prev" onclick="changeSlide(-1)">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="carousel-btn next" onclick="changeSlide(1)">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                    <div class="carousel-indicators" id="carousel-indicators">
                        <!-- 指示器将通过JavaScript动态生成 -->
                    </div>
                </div>
            </section>

            <!-- 新闻列表 -->
            <section class="news-section">
                <h2 class="section-title">最新资讯</h2>
                <div class="news-grid" id="news-grid">
                    <!-- 新闻卡片将通过JavaScript动态加载 -->
                </div>
                <div class="loading" id="loading">
                    <i class="fas fa-spinner fa-spin"></i> 加载中...
                </div>
            </section>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2024 今日新闻. 所有权利保留.</p>
        </div>
    </footer>

    <script src="js/app.js"></script>
</body>
</html>
